<?php
require_once dirname(dirname(__DIR__))."/common.php";
use app\cls\tom\Response;
use app\cls\tom\SysResource;
use app\model\Topic;
use app\model\Video;
use app\cls\tom\FFmpeg;
$type=$_REQUEST['type'];
$del=$_REQUEST['del'];
$redis = SysResource::getRedis();
if(empty($type)){
    $k1 = REDIS_PREFIX."material_statics_1";
    $k2 = REDIS_PREFIX."material_statics_2";
    $k3 = REDIS_PREFIX."material_statics_3";
    $k4 = REDIS_PREFIX."material_statics_4";
    $k5 = REDIS_PREFIX."material_statics_5";
    $k11=$redis->lRange($k1,0,-1);
    $k22=$redis->lRange($k2,0,-1);
    $k33=$redis->lRange($k3,0,-1);
    $k44=$redis->lRange($k4,0,-1);
    $k55=$redis->lRange($k5,0,-1);
    var_dump($k11);
    var_dump($k22);
    var_dump($k33);
    var_dump($k44);
    var_dump($k55);
}else{
    $k1 = REDIS_PREFIX."test_material_statics_1";
    $k2 = REDIS_PREFIX."test_material_statics_2";
    $k3 = REDIS_PREFIX."test_material_statics_3";
    $k4 = REDIS_PREFIX."test_material_statics_4";
    $k5 = REDIS_PREFIX."test_material_statics_5";
    $k11=$redis->lRange($k1,0,-1);
    $k22=$redis->lRange($k2,0,-1);
    $k33=$redis->lRange($k3,0,-1);
    $k44=$redis->lRange($k4,0,-1);
    $k55=$redis->lRange($k5,0,-1);
    var_dump($k11);
    var_dump($k22);
    var_dump($k33);
    var_dump($k44);
    var_dump($k55);
}
